home *** CD-ROM | disk | FTP | other *** search
- #Inventor V2.0 ascii
- # Self Manipulating SpotLight
- TransformSeparator {
- Separator {
- BaseColor { rgb 1 0 0 }
- DEF PROF_PT_DRAGGER Translate2Dragger {
- translation 0.5 0 0
- translator DEF DRAG_CUBE Separator {
- Cube { width .2 height .2 depth .2 }
- }
- translatorActive DEF DRAG_YELLOW_CUBE Separator {
- BaseColor { rgb 1 1 0 }
- Cube { width .2 height .2 depth .2 }
- }
- }
- }
- Translation {
- translation 0 0 0 = DEF CALC Calculator {
- a 0.5
- A = USE PROF_PT_DRAGGER.translation
- expression [
- "oa = a",
- "oA = vec3f( A[0]-a, A[1], A[2] )"
- ]
- } . oA
- }
- Cylinder {
- parts (SIDES | TOP)
- radius = USE CALC . oa
- height 2
- }
- SpotLight {
- location 0 0 0
- direction 0 -1 0
- }
- }
-